package com.dexilaonian.adpter;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

import java.util.List;

/**
 * Created by Administrator on 2018/3/20.
 */

public class RecoveryAdapter extends FragmentPagerAdapter {


    private final List<Fragment> fragments;

    public RecoveryAdapter(FragmentManager fm, List<Fragment> fragments_list) {
        super(fm);
        fragments = fragments_list;
    }




    @Override
    public Fragment getItem(int position) {
        return fragments.get(position);
    }

    @Override
    public int getCount() {
        return fragments.size();
    }
}
